<template>
	<view style="margin: 1rem 1rem;">
		<text>{{messageData.content}}</text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				messageData: {
					title:null,
					content:null,
					create_time:null
				}
			};
		},
		onLoad(params) {
			if(params.id){
				this.getDetail(params.id)
			}
			
		},
		methods:{
			getDetail(id){
				let that = this
				uni.request({
					url:getApp().globalData.baseUrl + '/api/index/getMessageDetail',
					method:'POST',
					data:{
						id:id
					},
					success(res) {
						that.messageData = res.data.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
